using Microsoft.Xna.Framework;

namespace HumanElement.Xna.Construct
{
    /// <summary>
    /// Construct Game facade for design time game systems.
    /// </summary>
    public class ConstructGame : Game
    {
        /// <summary>
        /// Gets or sets the last game time.
        /// </summary>
        /// <value>The last game time.</value>
        public GameTime LastGameTime { get; private set; }

        /// <summary>
        /// Initializes a new instance of the <see cref="ConstructGame"/> class.
        /// </summary>
        public ConstructGame() :base()
        {
            
        }

        /// <summary>
        /// Called after the Game and Graphics.GraphicsDevice are created, but before Game.LoadContent.
        /// Reference page contains code sample.
        /// </summary>
        protected override void Initialize()
        {
            base.Initialize();
        }

        /// <summary>
        /// Called when the game determines it is time to draw a frame. Reference page contains code sample.
        /// </summary>
        /// <param name="gameTime">Time passed since the last call to Microsoft.Xna.Framework.Game.Draw(Microsoft.Xna.Framework.GameTime).</param>
        protected override void Draw(GameTime gameTime)
        {
            base.Draw(gameTime);

        }

        /// <summary>
        /// Called when the game has determined that game logic needs to be processed. Reference page contains links to related code samples.
        /// </summary>
        /// <param name="gameTime">Time passed since the last call to Microsoft.Xna.Framework.Game.Update(Microsoft.Xna.Framework.GameTime).</param>
        protected override void Update(GameTime gameTime)
        {
            base.Update(gameTime);

            LastGameTime = gameTime;

        }
    }
}